<?php
/**
 * Created by JetBrains PhpStorm.
 * User: User
 * Date: 7/23/13
 * Time: 2:50 PM
 * To change this template use File | Settings | File Templates.
 */
class Upload extends CI_Model{
  public function __construct()
  {
    $this->load->database();
  }
  function insert_file(){
    $data = array(
      //'id' => '1' ,
      'name' => 'My Name' ,
      'type' => 'My date',
      'size' => '1My date',
      'path' => 'My date',
      'id_project' => 'My date',
      'id_office' => 'My date',
      'id_ns' => 'My date'

    );

    $this->db->insert('tbl_file', $data);

  }
}